package com.hmall.service;

import com.hmall.common.dto.FilterDTO;
import com.hmall.common.vo.PageVo;

import java.util.List;
import java.util.Map;

/**
 * @author leslie
 * @create 2023/9/1 0001 17:27
 */
public interface EsService{
    void insertBulkData();

    /**
     * 自动补全
     * @param key
     * @return
     */
    List<String> autoCompletion(String key);

    /**
     * 过滤
     * @param filterDTO
     * @return
     */
    Map<String, List<String>> filterSomething(FilterDTO filterDTO);

    /**
     * list展示
     * @param filterDTO
     * @return
     */
    PageVo list(FilterDTO filterDTO);

    void insertToEsById(Long id);
    void deleteEsById(Long id);
}
